<?php
  class UML
  {
      //Test Google Code
      public $UMLClasses;
      public $UMLInterfaces;
      public function __construct()
      {
         $this->UMLClasses = array(); 
         /*if(empty($this->$UMLClasses))
         {
             $this->link= new mysqli('localhost','uml','uml','uml');
             $query = "Select * from uml limit 1";
             $UMLQuery =$this->link->query($query);
             $UML = mysqli_fetch_assoc($UMLQuery);
             $UML_ID= $UML[UML_ID];
             $this->getClasses($UML_ID);
             $this->getInterfaces($UML_ID);
         } */
             
          
             
             
       
      }
      public function getClasses($UML_ID)
      {
             $query = "Select * from classes where UML_CLASS = $UML_ID";
             $UMLQuery =$this->link->query($query);
             $UML = mysqli_fetch_assoc($UMLQuery);
           
          
          
          
      }
      public function NewClass($classname)
      {
            
         $this->UMLClasses[$classname] = new UClass();
         
                  
      }
      
      public function DeleteClass($classname)
      {
          unset($this->UMLClasses[$classname]);       
      }
      public function EditClass()
      {
                    
      }
      public function NewInterface($classname)
      {
            
         $this->UMLInterfaces[$classname] = new UInterface();         
      }
      
      public function DeleteInterface($classname)
      {
          unset($this->UMLInterfaces[$classname]);       
      }
      public function EditInterfaces()
      {
                    
      }
      
      
  }
?>
